using System;
using FytSoa.Common.Utils;
using System.ComponentModel.DataAnnotations;
using SqlSugar;

namespace FytSoa.Application.Erp;

/// <summary>
/// erp-产品报废单详细表
/// </summary>
public class ErpScrapProductDto : AppEntity
{
    /// <summary>
    /// 报废编号
    /// </summary>
    [Required]
    public long ScrapId { get; set; }

    /// <summary>
    /// 库房编号
    /// </summary>
    [Required]
    public long WarehouseId { get; set; }

    /// <summary>
    /// 产品编号
    /// </summary>
    [Required]
    public long ProductId { get; set; }
    
    /// <summary>
    /// 物料信息
    /// </summary>
    public ErpProductDto Product { get; set; }

    /// <summary>
    /// 报废数量
    /// </summary>
    [Required]
    public int Count { get; set; } = 0;

    /// <summary>
    /// 状态/处理
    /// </summary>
    [Required]
    public int Status { get; set; } = 1;

    /// <summary>
    /// 创建人
    /// </summary>
    public string CreateUser { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [Required]
    public DateTime CreateTime { get; set; } = DateTime.Now;

    /// <summary>
    /// 更新人
    /// </summary>
    public string UpdateUser { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }


}